﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AccountAdmin/AdminMaster.master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="PRJ_LDW_Eutoliso.AccountAdmin.Veiculo.Home" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headTile" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="headScript" runat="server">
    <link href="/App_Themes/eutoliso/css/mGrid.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body_pre_central" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="body_central_first" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="body_central" runat="server">

    <!-- Start Box -->
    <div class="boxes-full">

        <div class="boxes-padding fullpadding">

            <!-- Start None Split Section -->
            <div class="splitnone">

                <div id="portfolio-container">


                    <!-- Start 4 column portfolio -->
                    <div class="element web">

                        <div class="col1">
                            <div class="wrapper_01">
                                <h3>
                                    <div class="wrapper_01">
                                        <li class="under_02"><a href="/AccountAdmin/Home.aspx" title="" class="active">Página Inicial</a></li>
                                        <li class="under_02"><a href="#">Anúncios</a></li>
                                        <li class="under_02"><a href="#">Meus Dados</a></li>
                                        <li class="under_02"><a href="/AccountAdmin/Veiculo/Tipo/Home.aspx" title="" class="active">Categorias</a></li>
                                        <li class="under_02"><a href="/AccountAdmin/Veiculo/Marca/Home.aspx" title="" class="active">Marcas</a></li>
                                        <li class="under_02"><a href="/AccountAdmin/Veiculo/Modelo/Home.aspx" title="" class="active">Modelos</a></li>
                                    </div>
                                </h3>
                            </div>
                        </div>

                    </div>

                    <div class="element graphic">


                        <asp:GridView ID="GridView1" runat="server" CssClass="mGrid" AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="dsImovel" Width="692px">
                            <Columns>
                                <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="True" SortExpression="Id" />
                                <asp:BoundField DataField="Titulo" HeaderText="Título do Anúncio" SortExpression="Titulo" />
                                <asp:BoundField DataField="Cor" HeaderText="Cor" SortExpression="Cor" />
                                <asp:BoundField DataField="Valor" HeaderText="Valor" SortExpression="Valor" />
                                <asp:BoundField DataField="Tipo" HeaderText="Tipo" SortExpression="Tipo" />
                                <asp:BoundField DataField="Modelo" HeaderText="Modelo" SortExpression="Modelo" />
                                <asp:BoundField DataField="Cidade" HeaderText="Cidade" SortExpression="Cidade" />
                                <asp:BoundField DataField="Condicoes" HeaderText="Condições" SortExpression="Condicoes" />


                                <asp:BoundField DataField="Cidade" HeaderText="Cidade" SortExpression="Cidade" />


                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <a href="/AccountAdmin/Veiculo/Edit.aspx?ID=<%# Eval("Id") %>">
                                            <img src="/App_Themes/eutoliso/images/edit.png" /></a>
                                        <%--<asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/App_Themes/eutoliso/images/edit.png" NavigateUrl='~/AccountAdmin/Endereco/Estado/Edit.aspx?ID=<%# Eval("Id") %>'>HyperLink</asp:HyperLink>--%>
                                    </ItemTemplate>
                                    <ItemStyle Width="24px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <a href="/AccountAdmin/Evento/Details.aspx?ID=<%# Eval("Id") %>">
                                            <img src="/App_Themes/eutoliso/images/lupa.png" /></a>
                                    </ItemTemplate>
                                    <ItemStyle Width="24px" />
                                </asp:TemplateField>
                                <asp:CommandField ButtonType="Image" DeleteImageUrl="~/App_Themes/eutoliso/images/rejectionalert.png" DeleteText="" ShowDeleteButton="True">
                                    <ItemStyle Width="24px" />
                                </asp:CommandField>



                            </Columns>

                            <EmptyDataTemplate>
                                Não há registos.
                            </EmptyDataTemplate>

                        </asp:GridView>

                        <%--<asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/App_Themes/eutoliso/images/add.png" NavigateUrl='/AccountAdmin/Servico/Insert.aspx'>Inserir Novo</asp:HyperLink>--%>

                        <br />
                        <a href="Insert.aspx" title="Inserir Novo" class="smallsmoothrectange orangebutton">Inserir Novo</a>




                        <asp:EntityDataSource ID="dsImovel" runat="server" ConnectionString="name=eutolisodbEntities1" DefaultContainerName="eutolisodbEntities1" EnableDelete="True" EnableFlattening="False" EnableInsert="True" EnableUpdate="True" EntitySetName="veiculo"></asp:EntityDataSource>


                        <br />

                    </div>

                    <div class="element graphic">

                        <br />


                    </div>

                    <!-- End 4 column portfolio -->

                </div>

            </div>
            <!-- End None Split Section -->

        </div>

    </div>
    <!-- End Box -->

</asp:Content>


